package com.ruiysoft.controller.mdse.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.util.Objects;

/**
 * RuleValueVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-10-27T01:43:53.483+08:00")

public class RuleValueVo   {
  @JsonProperty("id")
  private Long id = null;

  @JsonProperty("ruleName")
  private String ruleName = null;

  @JsonProperty("value")
  private String value = null;

  @JsonProperty("isSelect")
  private Integer isSelect = null;

  @JsonProperty("delFlag")
  private Integer delFlag = null;

  public RuleValueVo id(Long id) {
    this.id = id;
    return this;
  }

  /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(value = "")


  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public RuleValueVo ruleName(String ruleName) {
    this.ruleName = ruleName;
    return this;
  }

  /**
   * 规格名（如：颜色，尺寸可以为空）
   * @return ruleName
  **/
  @ApiModelProperty(value = "规格名（如：颜色，尺寸可以为空）")


  public String getRuleName() {
    return ruleName;
  }

  public void setRuleName(String ruleName) {
    this.ruleName = ruleName;
  }

  public RuleValueVo value(String value) {
    this.value = value;
    return this;
  }

  /**
   * 规格值（如：红色，黑色）
   * @return value
  **/
  @ApiModelProperty(required = true, value = "规格值（如：红色，黑色）")
  @NotNull


  public String getValue() {
    return value;
  }

  public void setValue(String value) {
    this.value = value;
  }

  public RuleValueVo isSelect(Integer isSelect) {
    this.isSelect = isSelect;
    return this;
  }

  /**
   * 选中状态（0，选中，1，未选中），sku详情界面、购物车使用，spu详情无用可无视
   * @return isSelect
  **/
  @ApiModelProperty(value = "选中状态（0，选中，1，未选中），sku详情界面、购物车使用，spu详情无用可无视")


  public Integer getIsSelect() {
    return isSelect;
  }

  public void setIsSelect(Integer isSelect) {
    this.isSelect = isSelect;
  }

  public RuleValueVo delFlag(Integer delFlag) {
    this.delFlag = delFlag;
    return this;
  }

  /**
   * 删除状态（0，已删除，1，未删除）
   * @return delFlag
  **/
  @ApiModelProperty(value = "删除状态（0，已删除，1，未删除）")


  public Integer getDelFlag() {
    return delFlag;
  }

  public void setDelFlag(Integer delFlag) {
    this.delFlag = delFlag;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    RuleValueVo ruleValueVo = (RuleValueVo) o;
    return Objects.equals(this.id, ruleValueVo.id) &&
        Objects.equals(this.ruleName, ruleValueVo.ruleName) &&
        Objects.equals(this.value, ruleValueVo.value) &&
        Objects.equals(this.isSelect, ruleValueVo.isSelect) &&
        Objects.equals(this.delFlag, ruleValueVo.delFlag);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, ruleName, value, isSelect, delFlag);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class RuleValueVo {\n");

    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    ruleName: ").append(toIndentedString(ruleName)).append("\n");
    sb.append("    value: ").append(toIndentedString(value)).append("\n");
    sb.append("    isSelect: ").append(toIndentedString(isSelect)).append("\n");
    sb.append("    delFlag: ").append(toIndentedString(delFlag)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

